package com.uiao.timetask;

import org.quartz.*;

/**
 * @author uiao
 * @Title: HelloJob
 * @Description: TODO
 * @date 2018/7/1611:35
 */
public class HelloJob implements Job {
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {

        JobKey key = context.getJobDetail().getKey();
        JobDataMap dataMap = context.getMergedJobDataMap();
        String jobSays = dataMap.getString("jobSays");
        float num = dataMap.getFloat("myFloatValue");
        System.out.println(key + jobSays + num);
        System.out.println("hello ! HelloJob is executing !");
    }
}
